<?php

namespace app\validate;

use think\Validate;

class VendorsAppValidate extends Validate
{
    protected $rule = [
        'username' => 'require',
        'password' => 'require',
        'new_password' => 'require',
        'id' => 'require',
    ];

    protected $message = [
        'username.require' => '用户名不能为空',
        'password.require' => '密码不能为空',
        'new_password.require' => '新密码不能为空',
        'id.require' => 'id不能为空',
    ];


    protected $scene = [
        'login' => ['username', 'password'],
        'changePassword' => ['password', 'new_password'],
        'orderInfo' => ['id'],
        'submitProductionExecution' => ['id'],
        'productionCompleted' => ['id'],
        'wxConfirmDelivery' => ['id'],
    ];
}